<%@ page import="com.example.day_day_up.entity.po.Course" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
  <%
    String id = request.getParameter("id");
    Course course = (Course) session.getAttribute("course_key" + id);
    request.setAttribute("course_key", course);
  %>
  <title>${course_key.title}</title>
  <style>
    body {
      padding: 0;
      margin: 0;
    }

    .common-layout {
      display: flex;
      flex-direction: column;
      height: 100vh;
    }

    .container {
      flex: 1;
      display: flex;
      overflow: auto;
    }
  </style>
</head>
<body>
<div class="common-layout">
  <div class="header">
    <%@ include file="header.jsp" %>
  </div>
  <div class="container">
    <%@ include file="main.jsp" %>
  </div>
</div>

<script>
  window.onload = function () {
    setIndex()
  }
</script>
</body>
</html>
